
#ifndef Velyn_aDuelPyrmaid_h
#define Velyn_aDuelPyrmaid_h

#include "IDrawable.h"

namespace Velyn {

    class DuelPyramid : public IDrawable {
        
    public:
        
        virtual void draw(TriangleMesh* mesh) {
            
            mesh->addVertex(1.0f, 0.0f, 0.0f);
            mesh->addVertex(0.0f, 0.0f, 1.0f);
            mesh->addVertex(-1.0f, 0.0f, 0.0f);
            mesh->addVertex(0.0f, 0.0f, -1.0f);
            mesh->addVertex(0.0f, 1.0f, 0.0f);
            mesh->addVertex(0.0f, -1.0f, 0.0f);
        
            mesh->addNormal(1.0f, 0.0f, 0.0f);
            mesh->addNormal(0.0f, 0.0f, 1.0f);
            mesh->addNormal(-1.0f, 0.0f, 0.0f);
            mesh->addNormal(0.0f, 0.0f, -1.0f);
            mesh->addNormal(0.0f, 1.0f, 0.0f);
            mesh->addNormal(0.0f, -1.0f, 0.0f);
            
            mesh->addTexture(1.0f, 1.0f);
            mesh->addTexture(0.5f, 0.5f);
            mesh->addTexture(0.0f, 0.0f);
            mesh->addTexture(0.5f, 0.5f);
            mesh->addTexture(0.0f, 1.0f);
            mesh->addTexture(1.0f, 0.0f);
            
            mesh->addTriangle(0, 1, 4);
            mesh->addTriangle(4, 1, 2);
            mesh->addTriangle(2, 1, 5);
            mesh->addTriangle(5, 1, 0);
            mesh->addTriangle(0, 3, 4);
            mesh->addTriangle(4, 3, 2);
            mesh->addTriangle(2, 3, 5);
            mesh->addTriangle(5, 3, 0);
            
        }

        
    };
    
}

#endif
